package com.webemail.email.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.webemail.email.entity.Email;

import javax.mail.Folder;
import java.util.List;

/**
 * @author LaiHQ
 */
public interface MyEmailService extends IService<Email> {
    /**
     * 同步邮件到系统
     * @param folderId
     * @param folder
     * @param folderFullName
     * @param currAccount
     */
    void syncEmail(Long folderId,Folder folder,String folderFullName, String currAccount);

    /**
     * 获取某文件夹下的所有邮件
     * @param fullName 文件夹完整名
     * @param currAccount 当前邮箱账户
     * @return
     */
    List<Email> getEmailByFolder(String fullName, String currAccount);

}
